home *** CD-ROM | disk | FTP | other *** search
Wrap
yyyyppppmmmmaaaakkkkeeee((((1111MMMM)))) yyyyppppmmmmaaaakkkkeeee((((1111MMMM)))) NNNNAAAAMMMMEEEE ypmake - rebuild and distribute NIS databases SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ////vvvvaaaarrrr////yyyypppp////yyyyppppmmmmaaaakkkkeeee [ [ _m_a_k_e-_o_p_t_i_o_n_s ] _m_a_p ] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN On NIS master machines, _y_p_m_a_k_e uses the file /_v_a_r/_y_p/_m_d_b_m__p_a_r_s_e and the optional file /_v_a_r/_y_p/_l_o_c_a_l._m_a_k_e._s_c_r_i_p_t to build the network information service (NIS) databases. With no arguments, _y_p_m_a_k_e creates _m_d_b_m(3B) databases for any NIS maps that are out-of-date and then executes _y_p_p_u_s_h(1M) to notify slave servers that there has been a change. If invoked with _m_a_p, _y_p_m_a_k_e updates that map only. Typing yyyyppppmmmmaaaakkkkeeee ppppaaaasssssssswwwwdddd creates and _y_p_p_u_s_hes the password database (assuming it is out-of-date). Likewise, yyyyppppmmmmaaaakkkkeeee hhhhoooossssttttssss and yyyyppppmmmmaaaakkkkeeee nnnneeeettttwwwwoooorrrrkkkkssss create databases from the host and network files, /_e_t_c/_h_o_s_t_s and /_e_t_c/_n_e_t_w_o_r_k_s, and _y_p_p_u_s_h the databases to the slave servers. With the ----uuuu option, _y_p_m_a_k_e always creates the map. _c_r_o_n(1M) executes _y_p_m_a_k_e at regular intervals in order to maintain consistency between NIS servers' databases. Once a day, _y_p_m_a_k_e moves the log file /_v_a_r/_y_p/_y_p_m_a_k_e._l_o_g to /_v_a_r/_y_p/_y_p_m_a_k_e._l_o_g._o_l_d to keep it from growing too large. _y_p_m_a_k_e reads the file /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s so that users can specify arguments to mdbm_parse. DDDDIIIIRRRR The directory of the source files. (Default is /_e_t_c.) DDDDOOOOMMMM Used to construct a domain other than the master's default domain. NNNNOOOOPPPPUUUUSSSSHHHH When non-null, inhibits doing a _y_p_p_u_s_h of the new database files. (Default is the null string.) PPPPWWWWFFFFIIIILLLLEEEE full pathname of the password file used to build the passwd database. (Default is /_e_t_c/_p_a_s_s_w_d.) For instance, to change the location of the password file used by _y_p_m_a_k_e to /_e_t_c/_p_a_s_s_w_d._y_p, include: PWFILE=/etc/passwd.yp in /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s. PPPPWWWWDDDDIIIIRRRR full pathname of the directory of password and, optionally, shadow file used to build the passwd database. For example, to use both password and shadow files from /_e_t_c/_y_p instead of standard /_e_t_c, include PPPPaaaaggggeeee 1111 yyyyppppmmmmaaaakkkkeeee((((1111MMMM)))) yyyyppppmmmmaaaakkkkeeee((((1111MMMM)))) PWDIR=/etc/yp in /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s. There is no default value for this variable and if it is not set, PPPPWWWWFFFFIIIILLLLEEEE is used. Note that if both PPPPWWWWDDDDIIIIRRRR and PPPPWWWWFFFFIIIILLLLEEEE is specified, PPPPWWWWDDDDIIIIRRRR takes precedence, but if neither is set, default value for PPPPWWWWFFFFIIIILLLLEEEE is used. Other then adding the variables to /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s, they can also be specified as arguments on the _y_p_m_a_k_e command line. To have local NIS maps updated by _y_p_m_a_k_e, create the file /_v_a_r/_y_p/_l_o_c_a_l._m_a_k_e._s_c_r_i_p_t and add rules similar to the ones in _m_d_b_m__p_a_r_s_e. Refer to _y_p_f_i_l_e_s(4) and _y_p_s_e_r_v(1M) for an overview of NIS. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS To create and push the _h_o_s_t_s map only it's out-of-date: _yyyy_pppp_mmmm_aaaa_kkkk_eeee _hhhh_oooo_ssss_tttt_ssss To always create and push the _h_o_s_t_s and _p_a_s_s_w_d map: _yyyy_pppp_mmmm_aaaa_kkkk_eeee _----_uuuu _hhhh_oooo_ssss_tttt_ssss _pppp_aaaa_ssss_ssss_wwww_dddd To always create but not push the _a_l_i_a_s_e_s map: _yyyy_pppp_mmmm_aaaa_kkkk_eeee _----_uuuu _NNNN_OOOO_PPPP_UUUU_SSSS_HHHH_====_1111 _aaaa_llll_iiii_aaaa_ssss_eeee_ssss FFFFIIIILLLLEEEESSSS /etc/config/ypmaster.options /var/yp/make.script /var/yp/local.make.script /var/yp/mdbm_parse /var/yp/ypmake.log /var/yp/ypmake.log.old SSSSEEEEEEEE AAAALLLLSSSSOOOO cron(1M), make(1), makemdbm(1M), ypserv(1M). NNNNOOOOTTTTEEEE The mdbm_parse script supports building a database for the shadow passwords, but this database is not built by default. Ypmake must be explicitly called with a shadow map name argument. If support for new databases are added a line must be added to the file ////vvvvaaaarrrr////nnnnssss////ddddoooommmmaaaaiiiinnnnssss////DDDDOOOOMMMMAAAAIIIINNNN////nnnnsssssssswwwwiiiittttcccchhhh....ccccoooonnnnffff for the NIS domain in question for the server to allow queries to the map. PPPPaaaaggggeeee 2222